<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>
<x:parse xml="${param.xmlstr}" var="xmlData"/>
<c:set var="title">经费预算表</c:set>
<c:if test="${not empty param.title }"><c:set var="title">${param.title }</c:set></c:if>
<div class="t_bar">
    <span class="color_red">*</span>1、关键仪器设备及设施条件清单（原值10万元以上填写，限99条）
</div>
<input type="hidden" id="temp_val" value="10" label="10万元"/>
<table id="transformation_lease" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0"
       style="*border-bottom: #a1c0dc 1px solid;table-layout: fixed;">
    <col width="5%"/>
    <col width="5%"/>
    <col width="20%"/>
    <col width="15%"/>
    <col width="15%"/>
    <col width="20%"/>
    <col width="20%"/>
    <thead>
    <tr style="border:1px solid #B7D1E6">
        <th class="TblHead" align="center">选择</th>
        <th class="TblHead" align="center">序号</th>
        <th class="TblHead" align="center">设备名称</th>
        <th class="TblHead" align="center">型号</th>
        <th class="TblHead" align="center">数量（台、套、件）</th>
        <th class="TblHead" align="center">单价（万元）</th>
        <th class="TblHead" align="center">用途</th>
    </tr>

    </thead>
    <tbody>
    <tr style="display:none" align="center">
        <td align="center">
            <input type="radio" class="radiobutton" name="selTransformationLease">
        </td>
        <td align="center">
            <span name="transformation_lease|list[0]@seq_no">[index]</span>
        </td>
        <td align="center">
            <input type="text" name="transformation_lease|list[0]|eqpname" label="设备名称" class=" required input_text "
                   maxlength="50" style="width:80%"/>
        </td>
        <td align="center">
            <input type="text" name="transformation_lease|list[0]|xinghao" label="型号" style="width:80%"
                   class=" input_text required" maxlength="20"/>
        </td>

        <td align="center">
            <input type="text" name="transformation_lease|list[0]|num" onfocus="InitInput.setNumber(this,9,0,0)"
                   label="数量" style="text-align:right;width:80%" class=" input_text required" maxlength="50"/>
        </td>
        <td align="center">
            <input type="text" name="transformation_lease|list[0]|budget" id="budget[0]"
                   label="单价" onfocus="InitInput.setNumber(this,9,2,2)" style="text-align:right;width:80%"
                   class=" input_text required valueGreatEqual:budget[0]:temp_val"/>
        </td>
        <td align="center">
            <input type="text" name="transformation_lease|list[0]|usetype" label="用途" style="width:80%"
                   class=" input_text required" maxlength="50"/>
        </td>
    </tr>

    <c:set value="0" var="index" scope="page"/>
    <x:forEach select="$xmlData/data/transformation_lease/list" var="list">

        <c:choose>
            <c:when test="${index<10}"><c:set value="0" var="flag" scope="page"/></c:when>
            <c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
        </c:choose>
        <tr align="center">
            <td align="center">
                <input type="radio" class="radiobutton" name="selTransformationLease">
            </td>
            <td align="center">
                <span name="transformation_lease/list[${flag}${index}]@seq_no"><x:out select="$list/@seq_no"/></span>
            </td>
            <td align="center">
                <input type="text" name="transformation_lease/list[${flag}${index}]/eqpname"
                       value="<x:out select="$list/eqpname"/>" label="设备名称" class=" required input_text " maxlength="50"
                       style="width:80%"/>
            </td>
            <td align="center">
                <input type="text" name="transformation_lease/list[${flag}${index}]/xinghao"
                       value="<x:out select="$list/xinghao"/>" label="型号" class=" required input_text " maxlength="20"
                       style="width:80%"/>
            </td>

            <td align="center">
                <input type="text" name="transformation_lease/list[${flag}${index}]/num"
                       onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$list/num"/>" label="数量"
                       class=" required input_text " maxlength="50" style="text-align:right;width:80%"/>
            </td>
            <td align="center">
                <input type="text" name="transformation_lease/list[${flag}${index}]/budget" id="budget${flag}${index}"
                       value="<x:out select="$list/budget"/>"
                       label="单价" onfocus="InitInput.setNumber(this,7,4,2)" style="text-align:right;width:80%"
                       class=" input_text required valueGreatEqual:budget${flag}${index }:temp_val"/>
            </td>
            <td align="center">
                <input type="text" name="transformation_lease/list[${flag}${index}]/usetype"
                       value="<x:out select="$list/usetype"/>" label="用途" class=" required input_text " maxlength="50"
                       style="width:80%"/>
            </td>
        </tr>
        <c:set value="${index+1}" var="index" scope="page"/>
    </x:forEach>
    </tbody>
    <script type="text/javascript">
        showAllDateTag("transformation_lease");
    </script>
</table>
<table width="98%" align="center" border="0">
    <tr style="border: 0">
        <td style="border: 0">
            <input class="button" name="cmdAddbefore" type=button value="添加"
                   onclick="if(checkTabLimit('transformation_lease',99,'关键仪器设备及设施条件清单最多只能添加99条')){addNewRow('transformation_lease');showDateTag('transformation_lease');try{top.resizeFrame();}catch(e){};}">
            <input class="button" name="cmdMovePrev" type=button value="上移"
                   onclick="movePrev('transformation_lease','selTransformationLease')">
            <input class="button" name="cmdMoveNext" type=button value="下移"
                   onclick="moveNext('transformation_lease','selTransformationLease')">
            <input class="button" name="cmddel" type=button value="删除"
                   onclick="deleteSelectedRow('transformation_lease','关键仪器设备及设施条件清单')">
        </td>
    </tr>
</table>
<br/>

<div class="t_bar">
    <span class="color_red">*</span>2、主要研究开发人员名录（限99条）
</div>
<table id="tblMileStones" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0"
       style="*border-bottom: #a1c0dc 1px solid;">
    <thead>
    <tr>
        <th class="TblHead" align="center" width="5%">选择</th>
        <th class="TblHead" align="center" width="5%">序号</th>
        <th class="TblHead" align="center" width="8%">姓名</th>
        <th class="TblHead" align="center" width="8%">职务</th>
        <th class="TblHead" align="center" width="12%">出生年月</th>
        <th class="TblHead" align="center" width="12%">学历</th>
        <th class="TblHead" align="center" width="13%">职称</th>
        <th class="TblHead" align="center" width="9%">专业</th>
        <th class="TblHead" align="center" width="10%">在工程中心分工</th>
        <th class="TblHead" align="center" width="10%">是否为学科带头人</th>
        <th class="TblHead" align="center" width="8%">备注</th>
    </tr>
    </thead>
    <tbody>
    <tr style="display:none">
        <td align="center">
            <input type="radio" class="radiobutton" name="selMileStones">
        </td>
        <td align="center">
            <span name="milestones|milestone[0][0]@seq_no">[index]</span>
        </td>
        <td align="center">
            <input name="milestones|milestone[0][0]|zh_name" label="姓名" value="" class=" required input_text "
                   maxlength="20" style="width:80%"/>
        </td>

        <td align="center">
            <input name="milestones|milestone[0][0]|post" label="职务" value="" class=" required input_text "
                   maxlength="20" style="width:80%"/>
        </td>
        <td align="center" nowrap="nowrap">
            <input id="birth_date_[0]" name="milestones|milestone[0][0]|birth_date" label="出生日期"
                   class="required input_text date beforeToday" style="width:80px"/>
        </td>
        <td align="center">
            <input name="milestones|milestone[0][0]|education" label="学历" value="" class=" required input_text "
                   maxlength="20" style="width:80%"/>
        </td>
        <td align="center">
            <cpt:tree key="prof_title" cacheable="false" className="input_css " readonly="true" value="" label="职称"
                      width="50%"
                      id="title[index]" name="title[0][0]" showPattern="current" shieldPattern="0" topCheckbox="false"
                      onClick="initTreeValue2"/>
            <input type="hidden" name="milestones|milestone[0][0]|title_value" id="title[index]_value" class="required"
                   value="" label="职称"/>
            <input type="hidden" name="milestones|milestone[0][0]|title_name" id="title[index]_name" value=""/>

        </td>

        <td align="center">
            <input name="milestones|milestone[0][0]|major" label="专业" value=""
                   class=" required input_text " maxlength="100" style="width:80%"/>
        </td>
        <td align="center">
            <input name="milestones|milestone[0][0]|division" label="在工程中心分工" value=""
                   class=" required input_text " maxlength="100" style="width:80%"/>
        </td>
        <td align="center">
            <cpt:select id="leader_[index]" name="leader" key="yes_no"  onChange="initControlValue(this.id)" value="" className="common_select"></cpt:select>
            <input type="hidden" name="milestones|milestone[0][0]|leader_value" value="" class="required" label="是否为学科带头人"/>
            <input type="hidden" name="milestones|milestone[0][0]|leader_name" value=""/>
        </td>
        <td align="center">
            <input name="milestones|milestone[0][0]|remark" label="备注" value=""
                   class=" required input_text " maxlength="100" style="width:80%"/>
        </td>
    </tr>


    <c:set value="0" var="index" scope="page"/>
    <x:forEach select="$xmlData/data/milestones/milestone" var="milestone">

        <c:choose>
            <c:when test="${index<10}"><c:set value="0" var="flag" scope="page"/></c:when>
            <c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
        </c:choose>
        <tr>
            <td align="center">
                <input type="radio" class="radiobutton" name="selMileStones">
            </td>
            <td align="center">
                <span name="milestones/milestone[${flag}${index}]@seq_no"><x:out select="$milestone/@seq_no"/></span>
            </td>
            <td align="center">
                <input name="milestones/milestone[${flag}${index}]/zh_name" value="<x:out select="$milestone/zh_name"/>"
                       label="姓名" maxlength="20" class="required" style="width:80%"/>
            </td>

            <td align="center">
                <input name="milestones/milestone[${flag}${index}]/post" value="<x:out select="$milestone/post"/>"
                       label="职务" maxlength="20" class="required" style="width:80%"/>
            </td>
            <td align="center" nowrap="nowrap">
                <c:set var="birth_date" scope="page"><x:out select="$milestone/birth_date"/></c:set>
                <input id="birth_date_${flag}${index}" value="${birth_date}" label="出生日期"
                       name="milestones/milestone[${flag}${index}]/birth_date"
                       class="required date input_text beforeToday" style="width:80px"/>
            </td>
            <td align="center" nowrap="nowrap">
                <input name="milestones/milestone[${flag}${index}]/education" value="<x:out select="$milestone/education"/>"
                       label="学历" maxlength="20" class="required" style="width:80%"/>
            </td>
            <td align="center">
                <c:set var="title">{'id':'<x:out select="$milestone/title_value"/>','name':'<x:out
                        select="$milestone/title_name"/>'}</c:set>
                <cpt:tree key="prof_title" cacheable="false" className="input_css" readonly="true" value="${title}"
                          label="职称" width="50%"
                          id="title${flag}${index}" name="title${flag}${index}" showPattern="current" shieldPattern="0"
                          topCheckbox="false" onClick="initTreeValue2"/>
                <input type="hidden" id="title${flag}${index}_value"
                       name="milestones/milestone[${flag}${index}]/title_value" class="required"
                       value="<x:out select="$milestone/title_value" />" label="职称"/>
                <input type="hidden" id="title${flag}${index}_name"
                       name="milestones/milestone[${flag}${index}]/title_name"
                       value="<x:out select="$milestone/title_name" />"/>
            </td>

            <td align="center">
                <input name="milestones/milestone[${flag}${index}]/major"
                       value="<x:out select="$milestone/major"/>" label="专业" maxlength="100"
                       class="required" style="width:80%"/>
            </td>
            <td align="center">
                <input name="milestones/milestone[${flag}${index}]/division"
                       value="<x:out select="$milestone/division"/>" label="在工程中心分工" maxlength="100"
                       class="required" style="width:80%"/>
            </td>
            <td align="center">
                <c:set var="leader_value"><x:out select="$milestone/leader_value"/></c:set>
                <cpt:select id="leader_${index}" name="leader" key="yes_no"  onChange="initControlValue(this.id)" value="${leader_value }" className="common_select"></cpt:select>
                <input type="hidden" name="milestones/milestone[${flag}${index}]/leader_value" value="${leader_value}" class="required" label="是否为学科带头人"/>
                <input type="hidden" name="milestones/milestone[${flag}${index}]/leader_name" value="<x:out select="$milestone/leader_name"/>"/>
            </td>
            <td align="center">
                <input name="milestones/milestone[${flag}${index}]/remark"
                       value="<x:out select="$milestone/remark"/>" label="备注" maxlength="100"
                       class="required" style="width:80%"/>
            </td>
        </tr>

        <c:set value="${index+1}" var="index" scope="page"/>
    </x:forEach>
    </tbody>
    <script type="text/javascript">
        showAllDateTag("tblMileStones");
    </script>
</table>
<table width="98%" align="center">
    <tr>
        <td>
            <input class="button" name="cmdAddbefore" type=button value="添加"
                   onclick="if(checkTabLimit('tblMileStones',99,'主要研究开发人员名录最多只能填写99条')){addNewRow('tblMileStones');showDateTag('tblMileStones');}try{top.resizeFrame();}catch(e){};">
            <input class="button" name="cmdMovePrev" type=button value="上移"
                   onclick="movePrev2('tblMileStones','selMileStones')">
            <input class="button" name="cmdMoveNext" type=button value="下移"
                   onclick="moveNext2('tblMileStones','selMileStones')">
            <input class="button" name="cmddel" type=button value="删除"
                   onclick="deleteSelectedRow2('tblMileStones','主要研究开发人员名录');">
        </td>
    </tr>
</table>
<br/>

<div class="t_bar">
    <span class="color_red">*</span>3、组建以来（或近三年）科研项目及取得科技成果转化情况(限20条)
</div>
<table id="achievements" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0"
       style="*border-bottom: #a1c0dc 1px solid;table-layout: fixed;">
    <col width="5%"/>
    <col width="5%"/>
    <col width="10%"/>
    <col width="10%"/>
    <col width="12%"/>
    <col width="12%"/>
    <col width="9%"/>
    <col width="9%"/>
    <col width="9%"/>
    <col width="9%"/>
    <col width="10%"/>
    <thead>
    <tr style="border:1px solid #B7D1E6">
        <th class="TblHead" align="center">选择</th>
        <th class="TblHead" align="center">序号</th>
        <th class="TblHead" align="center">项目名称</th>
        <th class="TblHead" align="center">项目来源及立项编号</th>
        <th class="TblHead" align="center">开始时间</th>
        <th class="TblHead" align="center">结束时间</th>
        <th class="TblHead" align="center">项目负责人</th>
        <th class="TblHead" align="center">合作单位</th>
        <th class="TblHead" align="center">总投资<br/>（万元）</th>
        <th class="TblHead" align="center">取得的科技成果名称</th>
        <th class="TblHead" align="center">科技成果转化情况</th>
    </tr>

    </thead>
    <tbody>
    <tr style="display:none" align="center">
        <td align="center">
            <input type="radio" class="radiobutton" name="selAchievements">
        </td>
        <td align="center">
            <span name="achievements|achievement[0]@seq_no">[index]</span>
        </td>
        <td align="center">
            <input type="text" name="achievements|achievement[0]|zh_title" label="项目名称" class=" required input_text "
                   maxlength="50" style="width:80%"/>
        </td>
        <td align="center">
            <input type="text" name="achievements|achievement[0]|prj_no" label="项目来源及立项编号" class=" required input_text "
                   maxlength="50" style="width:80%"/>
        </td>
        <td align="center" nowrap="nowrap">
            <input id="achievement_start_date_[0]" name="achievements|achievement[0]|start_date" label="开始时间"
                   class="required input_text date dateCompare:achievement_end_date_[0]" style="width:70%"/>
        </td>
        <td align="center" nowrap="nowrap">
            <input id="achievement_end_date_[0]" name="achievements|achievement[0]|end_date" label="结束时间"
                   class="required input_text date" style="width:70%"/>
        </td>
        <td align="center">
            <input type="text" name="achievements|achievement[0]|psn_name" label="项目负责人" class=" required input_text "
                   maxlength="50" style="width:80%"/>
        </td>
        <td align="center">
            <input type="text" name="achievements|achievement[0]|org_name" label="合作单位" class=" required input_text "
                   maxlength="50" style="width:80%"/>
        </td>
        <td align="center">
            <input type="text" name="achievements|achievement[0]|total_investment" label="总投资" class=" required input_text "
                   maxlength="50" style="width:80%;text-align:right;" onfocus="InitInput.setNumber(this,9,2,2)" />
        </td>
        <td align="center">
            <input type="text" name="achievements|achievement[0]|name" label="取得的科技成果名称" class=" required input_text "
                   maxlength="50" style="width:80%;"/>
        </td>
        <td align="center">
            <input type="text" name="achievements|achievement[0]|situation" label="科技成果转化情况" class=" required input_text "
                   maxlength="50" style="width:80%;" />
        </td>
    </tr>

    <c:set value="0" var="index" scope="page"/>
    <x:forEach select="$xmlData/data/achievements/achievement" var="achievement">

        <c:choose>
            <c:when test="${index<10}"><c:set value="0" var="flag" scope="page"/></c:when>
            <c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
        </c:choose>
        <tr align="center">
            <td align="center">
                <input type="radio" class="radiobutton" name="selAchievements">
            </td>
            <td align="center">
                <span name="achievements/achievement[${flag}${index}]@seq_no"><x:out select="$achievement/@seq_no"/></span>
            </td>
            <td align="center">
                <input type="text" name="achievements/achievement[${flag}${index}]/zh_title" label="项目名称" class=" required input_text "
                       maxlength="50" style="width:80%" value="<x:out select="$achievement/zh_title"/>"/>
            </td>
            <td align="center">
                <input type="text" name="achievements/achievement[${flag}${index}]/prj_no" label="项目来源及立项编号" class=" required input_text "
                       maxlength="50" style="width:80%" value="<x:out select="$achievement/prj_no"/>"/>
            </td>
            <td align="center" nowrap="nowrap">
                <c:set var="start_date"><x:out select="$achievement/start_date"/></c:set>
                <input id="achievement_start_date_[${flag}${index}]" name="achievements/achievement[${flag}${index}]/start_date" label="开始时间"
                       class="required input_text date dateCompare:achievement_end_date_[${flag}${index}]" value="${start_date}" style="width:70%"/>
            </td>
            <td align="center" nowrap="nowrap">
                <c:set var="end_date"><x:out select="$achievement/end_date"/></c:set>
                <input id="achievement_end_date_[${flag}${index}]" name="achievements/achievement[${flag}${index}]/end_date" label="结束时间"
                       class="required input_text date" style="width:70%" value="${end_date}"/>
            </td>
            <td align="center">
                <input type="text" name="achievements/achievement[${flag}${index}]/psn_name" label="项目负责人" class=" required input_text "
                       maxlength="50" style="width:80%" value="<x:out select="$achievement/psn_name"/>"/>
            </td>
            <td align="center">
                <input type="text" name="achievements/achievement[${flag}${index}]/org_name" label="合作单位" class=" required input_text "
                       maxlength="50" style="width:80%" value="<x:out select="$achievement/org_name"/>"/>
            </td>
            <td align="center">
                <input type="text" name="achievements/achievement[${flag}${index}]/total_investment" label="总投资" class=" required input_text "
                       maxlength="50" style="width:80%;text-align:right;" onfocus="InitInput.setNumber(this,9,2,2)" value="<x:out select="$achievement/total_investment"/>" />
            </td>
            <td align="center">
                <input type="text" name="achievements/achievement[${flag}${index}]/name" label="取得的科技成果名称" class=" required input_text "
                       maxlength="50" style="width:80%;"  value="<x:out select="$achievement/name"/>"/>
            </td>
            <td align="center">
                <input type="text" name="achievements/achievement[${flag}${index}]/situation" label="科技成果转化情况" class=" required input_text "
                       maxlength="50" style="width:80%;"  value="<x:out select="$achievement/situation"/>"/>
            </td>
        </tr>
        <c:set value="${index+1}" var="index" scope="page"/>
    </x:forEach>
    </tbody>
    <script type="text/javascript">
        showAllDateTag("achievements");
    </script>
</table>
<table width="98%" align="center" border="0">
    <tr style="border: 0">
        <td style="border: 0">
            <input class="button" name="cmdAddbefore" type=button value="添加"
                   onclick="if(checkTabLimit('achievements',20,'组建以来（或近三年）科研项目及取得科技成果转化情况最多只能添加20条')){addNewRow('achievements');showDateTag('achievements');try{top.resizeFrame();}catch(e){};}">
            <input class="button" name="cmdMovePrev" type=button value="上移"
                   onclick="movePrev('achievements','selAchievements')">
            <input class="button" name="cmdMoveNext" type=button value="下移"
                   onclick="moveNext('achievements','selAchievements')">
            <input class="button" name="cmddel" type=button value="删除"
                   onclick="deleteSelectedRow('achievements','组建以来（或近三年）科研项目及取得科技成果转化情况')">
        </td>
    </tr>
</table>
<p>项目来源及立项编号：指项目在国家、省、市等部门立项及其编号，包括工程中心自立项目。</p>
<br/>

<div class="t_bar">
    <span class="color_red">*</span>4、组建以来（或近三年）申请和获得授权的知识产权情况（限99条）
</div>
<table id="intellectualProperty" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0"
       style="*border-bottom: #a1c0dc 1px solid;table-layout: fixed;">
    <col width="5%"/>
    <col width="5%"/>
    <col width="16%"/>
    <col width="16%"/>
    <col width="13%"/>
    <col width="13%"/>
    <col width="16%"/>
    <col width="16%"/>
    <thead>
    <tr style="border:1px solid #B7D1E6">
        <th class="TblHead" align="center">选择</th>
        <th class="TblHead" align="center">序号</th>
        <th class="TblHead" align="center">知识产权名称</th>
        <th class="TblHead" align="center">类型</th>
        <th class="TblHead" align="center">国别</th>
        <th class="TblHead" align="center">申请或授权号</th>
        <th class="TblHead" align="center">受理或授权日期</th>
        <th class="TblHead" align="center">状态</th>
    </tr>

    </thead>
    <tbody>
    <tr style="display:none" align="center">
        <td align="center">
            <input type="radio" class="radiobutton" name="selIntellectualProperty">
        </td>
        <td align="center">
            <span name="intellectual_property|list[0]@seq_no">[index]</span>
        </td>
        <td align="center">
            <input type="text" name="intellectual_property|list[0]|name" label="知识产权名称" class=" required input_text "
                   maxlength="50" style="width:80%"/>
        </td>
        <td align="center">
            <input type="text" name="intellectual_property|list[0]|type" label="类型" class=" required input_text "
                   maxlength="50" style="width:80%"/>
        </td>
        <td align="center">
            <input type="text" name="intellectual_property|list[0]|different_countries" label="国别" class=" required input_text "
                   maxlength="50" style="width:80%"/>
        </td>
        <td align="center">
            <input type="text" name="intellectual_property|list[0]|authorization_number" label="申请或授权号" class=" required input_text "
                   maxlength="50" style="width:80%"/>
        </td>
        <td align="center" nowrap="nowrap">
            <input id="intellectual_acceptance_date_[0]" name="intellectual_property|list[0]|acceptance_date" label="受理或授权日期"
                   class="required input_text date beforeToday" style="width:70px"/>
        </td>
        <td align="center">
            <input type="text" name="intellectual_property|list[0]|status" label="状态" class=" required input_text "
                   maxlength="50" style="width:80%"/>
        </td>
    </tr>

    <c:set value="0" var="index" scope="page"/>
    <x:forEach select="$xmlData/data/intellectual_property/list" var="list">

        <c:choose>
            <c:when test="${index<10}"><c:set value="0" var="flag" scope="page"/></c:when>
            <c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
        </c:choose>
        <tr align="center">
            <td align="center">
                <input type="radio" class="radiobutton" name="selIntellectualProperty">
            </td>
            <td align="center">
                <span name="intellectual_property/list[${flag}${index}]@seq_no"><x:out select="$list/@seq_no"/></span>
            </td>
            <td align="center">
                <input type="text" name="intellectual_property/list[${flag}${index}]/name" label="知识产权名称" class=" required input_text "
                       maxlength="50" style="width:80%" value="<x:out select="$list/name"/>"/>
            </td>
            <td align="center">
                <input type="text" name="intellectual_property/list[${flag}${index}]/type" label="类型" class=" required input_text "
                       maxlength="50" style="width:80%" value="<x:out select="$list/type"/>"/>
            </td>
            <td align="center">
                <input type="text" name="intellectual_property/list[${flag}${index}]/different_countries" label="国别" class=" required input_text "
                       maxlength="50" style="width:80%" value="<x:out select="$list/different_countries"/>"/>
            </td>
            <td align="center">
                <input type="text" name="intellectual_property/list[${flag}${index}]/authorization_number" label="申请或授权号" class=" required input_text "
                       maxlength="50" style="width:80%" value="<x:out select="$list/authorization_number"/>"/>
            </td>
            <td align="center" nowrap="nowrap">
                <c:set var="acceptance_date"><x:out select="$list/acceptance_date"/></c:set>
                <input id="intellectual_acceptance_date_[${flag}${index}]" name="intellectual_property/list[${flag}${index}]/acceptance_date" label="受理或授权日期"
                       value="${acceptance_date}" class="required input_text date beforeToday" style="width:70px"/>
            </td>
            <td align="center">
                <input type="text" name="intellectual_property/list[${flag}${index}]/status" label="状态" class=" required input_text "
                       maxlength="50" style="width:80%" value="<x:out select="$list/status"/>"/>
            </td>
        </tr>
        <c:set value="${index+1}" var="index" scope="page"/>
    </x:forEach>
    </tbody>
    <script type="text/javascript">
        showAllDateTag("intellectualProperty");
    </script>
</table>
<table width="98%" align="center" border="0">
    <tr style="border: 0">
        <td style="border: 0">
            <input class="button" name="cmdAddbefore" type=button value="添加"
                   onclick="if(checkTabLimit('intellectualProperty',99,'组建以来（或近三年）申请和获得授权的知识产权情况最多只能添加99条')){addNewRow('intellectualProperty');showDateTag('intellectualProperty');try{top.resizeFrame();}catch(e){};}">
            <input class="button" name="cmdMovePrev" type=button value="上移"
                   onclick="movePrev('intellectualProperty','selIntellectualProperty')">
            <input class="button" name="cmdMoveNext" type=button value="下移"
                   onclick="moveNext('intellectualProperty','selIntellectualProperty')">
            <input class="button" name="cmddel" type=button value="删除"
                   onclick="deleteSelectedRow('intellectualProperty','组建以来（或近三年）申请和获得授权的知识产权情况')">
        </td>
    </tr>
</table>
<p>注：知识产权类型包括发明专利、PCT、实用型新专利、外观专利、软件著作权、集成电路布图设计权、动植物新品种、新药证书等，状态是指知识产权是否授权，是否有效。</p>
<br/>


<div class="t_bar">
    5、组建以来（或近三年）主持或参与制定标准情况（限99条）
</div>
<table id="standard" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0"
       style="*border-bottom: #a1c0dc 1px solid;table-layout: fixed;">
    <col width="5%"/>
    <col width="5%"/>
    <col width="18%"/>
    <col width="18%"/>
    <col width="18%"/>
    <col width="18%"/>
    <col width="18%"/>
    <thead>
    <tr style="border:1px solid #B7D1E6">
        <th class="TblHead" align="center">选择</th>
        <th class="TblHead" align="center">序号</th>
        <th class="TblHead" align="center">标准名称</th>
        <th class="TblHead" align="center">标准编号</th>
        <th class="TblHead" align="center">标准类别</th>
        <th class="TblHead" align="center">备案或批准单位</th>
        <th class="TblHead" align="center">批准时间</th>
    </tr>

    </thead>
    <tbody>
    <tr style="display:none" align="center">
        <td align="center">
            <input type="radio" class="radiobutton" name="selStandard">
        </td>
        <td align="center">
            <span name="standards|standard[0]@seq_no">[index]</span>
        </td>
        <td align="center">
            <input type="text" name="standards|standard[0]|name" label="标准名称" class=" required input_text "
                   maxlength="50" style="width:80%"/>
        </td>
        <td align="center">
            <input type="text" name="standards|standard[0]|number" label="标准编号" class=" required input_text "
                   maxlength="50" style="width:80%"/>
        </td>
        <td align="center">
            <input type="text" name="standards|standard[0]|category" label="标准类别" class=" required input_text "
                   maxlength="50" style="width:80%"/>
        </td>
        <td align="center">
            <input type="text" name="standards|standard[0]|approved_unit" label="备案或批准单位" class=" required input_text "
                   maxlength="50" style="width:80%"/>
        </td>
        <td align="center" nowrap="nowrap">
            <input id="standard_approval_date_[0]" name="standards|standard[0]|approval_date" label="批准时间"
                   class="required input_text date beforeToday" style="width:80%"/>
        </td>
    </tr>

    <c:set value="0" var="index" scope="page"/>
    <x:forEach select="$xmlData/data/standards/standard" var="standard">

        <c:choose>
            <c:when test="${index<10}"><c:set value="0" var="flag" scope="page"/></c:when>
            <c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
        </c:choose>
        <tr align="center">
            <td align="center">
                <input type="radio" class="radiobutton" name="selStandard">
            </td>
            <td align="center">
                <span name="standards/standard[${flag}${index}]@seq_no"><x:out select="$standard/@seq_no"/></span>
            </td>
            <td align="center">
                <input type="text" name="standards/standard[${flag}${index}]/name" label="标准名称" class=" required input_text "
                       maxlength="50" style="width:80%" value="<x:out select="$standard/name"/>"/>
            </td>
            <td align="center">
                <input type="text" name="standards/standard[${flag}${index}]/number" label="标准编号" class=" required input_text "
                       maxlength="50" style="width:80%" value="<x:out select="$standard/number"/>"/>
            </td>
            <td align="center">
                <input type="text" name="standards/standard[${flag}${index}]/category" label="标准类别" class=" required input_text "
                       maxlength="50" style="width:80%" value="<x:out select="$standard/category"/>"/>
            </td>
            <td align="center">
                <input type="text" name="standards/standard[${flag}${index}]/approved_unit" label="备案或批准单位" class=" required input_text "
                       maxlength="50" style="width:80%" value="<x:out select="$standard/approved_unit"/>"/>
            </td>
            <td align="center" nowrap="nowrap">
                <c:set var="approval_date"><x:out select="$standard/approval_date"/></c:set>
                <input id="standard_approval_date_[${flag}${index}]" name="standards/standard[${flag}${index}]/approval_date" label="批准时间"
                       class="required input_text date beforeToday" style="width:80%" value="${approval_date}"/>
            </td>
        </tr>
        <c:set value="${index+1}" var="index" scope="page"/>
    </x:forEach>
    </tbody>
    <script type="text/javascript">
        showAllDateTag("standard");
    </script>
</table>
<table width="98%" align="center" border="0">
    <tr style="border: 0">
        <td style="border: 0">
            <input class="button" name="cmdAddbefore" type=button value="添加"
                   onclick="if(checkTabLimit('standard',99,'组建以来（或近三年）主持或参与制定标准情况最多只能添加99条')){addNewRow('standard');showDateTag('standard');try{top.resizeFrame();}catch(e){};}">
            <input class="button" name="cmdMovePrev" type=button value="上移"
                   onclick="movePrev('standard','selStandard')">
            <input class="button" name="cmdMoveNext" type=button value="下移"
                   onclick="moveNext('standard','selStandard')">
            <input class="button" name="cmddel" type=button value="删除"
                   onclick="deleteSelectedRow('standard','组建以来（或近三年）主持或参与制定标准情况')">
        </td>
    </tr>
</table>
<p>注：标准类别是指国际、国家、行业、地方或企业标准</p>
<br/>


<div class="t_bar">
    6、组建以来（或近三年）获得奖励情况（限99条）
</div>
<table id="reward" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0"
       style="*border-bottom: #a1c0dc 1px solid;table-layout: fixed;">
    <col width="5%"/>
    <col width="5%"/>
    <col width="15%"/>
    <col width="15%"/>
    <col width="15%"/>
    <col width="15%"/>
    <col width="15%"/>
    <col width="15%"/>
    <thead>
    <tr style="border:1px solid #B7D1E6">
        <th class="TblHead" align="center">选择</th>
        <th class="TblHead" align="center">序号</th>
        <th class="TblHead" align="center">获奖项目名称</th>
        <th class="TblHead" align="center">奖项名称</th>
        <th class="TblHead" align="center">级别</th>
        <th class="TblHead" align="center">证书编号</th>
        <th class="TblHead" align="center">授奖单位</th>
        <th class="TblHead" align="center">备注</th>
    </tr>

    </thead>
    <tbody>
    <tr style="display:none" align="center">
        <td align="center">
            <input type="radio" class="radiobutton" name="selReward">
        </td>
        <td align="center">
            <span name="rewards|reward[0]@seq_no">[index]</span>
        </td>
        <td align="center">
            <input type="text" name="rewards|reward[0]|winning_prj_name" label="获奖项目名称" class=" required input_text "
                   maxlength="50" style="width:80%"/>
        </td>
        <td align="center">
            <input type="text" name="rewards|reward[0]|name" label="奖项名称" class=" required input_text "
                   maxlength="50" style="width:80%"/>
        </td>
        <td align="center">
            <input type="text" name="rewards|reward[0]|level" label="级别" class=" required input_text "
                   maxlength="50" style="width:80%"/>
        </td>
        <td align="center">
            <input type="text" name="rewards|reward[0]|ctf_no" label="证书编号" class=" required input_text "
                   maxlength="50" style="width:80%"/>
        </td>
        <td align="center">
            <input type="text" name="rewards|reward[0]|awarding_unit" label="授奖单位" class=" required input_text "
                   maxlength="50" style="width:80%"/>
        </td>
        <td align="center">
            <input type="text" name="rewards|reward[0]|remarks" label="备注" class=" required input_text "
                   maxlength="50" style="width:80%"/>
        </td>
    </tr>

    <c:set value="0" var="index" scope="page"/>
    <x:forEach select="$xmlData/data/rewards/reward" var="reward">

        <c:choose>
            <c:when test="${index<10}"><c:set value="0" var="flag" scope="page"/></c:when>
            <c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
        </c:choose>
        <tr align="center">
            <td align="center">
                <input type="radio" class="radiobutton" name="selReward">
            </td>
            <td align="center">
                <span name="rewards/reward[${flag}${index}]@seq_no"><x:out select="$reward/@seq_no"/></span>
            </td>
            <td align="center">
                <input type="text" name="rewards/reward[${flag}${index}]/winning_prj_name" label="获奖项目名称" class=" required input_text "
                       maxlength="50" style="width:80%" value="<x:out select="$reward/winning_prj_name"/>"/>
            </td>
            <td align="center">
                <input type="text" name="rewards/reward[${flag}${index}]/name" label="奖项名称" class=" required input_text "
                       maxlength="50" style="width:80%" value="<x:out select="$reward/name"/>"/>
            </td>
            <td align="center">
                <input type="text" name="rewards/reward[${flag}${index}]/level" label="级别" class=" required input_text "
                       maxlength="50" style="width:80%" value="<x:out select="$reward/level"/>"/>
            </td>
            <td align="center">
                <input type="text" name="rewards/reward[${flag}${index}]/ctf_no" label="证书编号" class=" required input_text "
                       maxlength="50" style="width:80%" value="<x:out select="$reward/ctf_no"/>"/>
            </td>
            <td align="center">
                <input type="text" name="rewards/reward[${flag}${index}]/awarding_unit" label="授奖单位" class=" required input_text "
                       maxlength="50" style="width:80%" value="<x:out select="$reward/awarding_unit"/>"/>
            </td>
            <td align="center">
                <input type="text" name="rewards/reward[${flag}${index}]/remarks" label="备注" class=" required input_text "
                       maxlength="50" style="width:80%" value="<x:out select="$reward/remarks"/>"/>
            </td>
        </tr>
        <c:set value="${index+1}" var="index" scope="page"/>
    </x:forEach>
    </tbody>
    <script type="text/javascript">
        showAllDateTag("reward");
    </script>
</table>
<table width="98%" align="center" border="0">
    <tr style="border: 0">
        <td style="border: 0">
            <input class="button" name="cmdAddbefore" type=button value="添加"
                   onclick="if(checkTabLimit('reward',99,'组建以来（或近三年）获得奖励情况最多只能添加99条')){addNewRow('reward');showDateTag('reward');try{top.resizeFrame();}catch(e){};}">
            <input class="button" name="cmdMovePrev" type=button value="上移"
                   onclick="movePrev('reward','selReward')">
            <input class="button" name="cmdMoveNext" type=button value="下移"
                   onclick="moveNext('reward','selReward')">
            <input class="button" name="cmddel" type=button value="删除"
                   onclick="deleteSelectedRow('reward','组建以来（或近三年）获得奖励情况')">
        </td>
    </tr>
</table>
<p>注：奖励级别是指国家、省或部委、行业、地市级</p>
<br/>

<div class="t_bar">
    7、组建以来（或近三年）发表论文情况（限99条）
</div>
<table id="paper" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0"
       style="*border-bottom: #a1c0dc 1px solid;table-layout: fixed;">
    <col width="5%"/>
    <col width="5%"/>
    <col width="15%"/>
    <col width="15%"/>
    <col width="15%"/>
    <col width="15%"/>
    <col width="15%"/>
    <col width="15%"/>
    <thead>
    <tr style="border:1px solid #B7D1E6">
        <th class="TblHead" align="center">选择</th>
        <th class="TblHead" align="center">序号</th>
        <th class="TblHead" align="center">文章名称</th>
        <th class="TblHead" align="center">刊物名称及期号</th>
        <th class="TblHead" align="center">发表时间</th>
        <th class="TblHead" align="center">第一作者</th>
        <th class="TblHead" align="center">第一作者单位</th>
        <th class="TblHead" align="center">论文摘要</th>
    </tr>

    </thead>
    <tbody>
    <tr style="display:none" align="center">
        <td align="center">
            <input type="radio" class="radiobutton" name="selPaper">
        </td>
        <td align="center">
            <span name="papers|paper[0]@seq_no">[index]</span>
        </td>
        <td align="center">
            <input type="text" name="papers|paper[0]|article_name" label="文章名称" class=" required input_text "
                   maxlength="200" style="width:80%"/>
        </td>
        <td align="center">
            <input type="text" name="papers|paper[0]|publication" label="刊物名称及期号" class=" required input_text "
                   maxlength="50" style="width:80%"/>
        </td>
        <td align="center">
            <input id="paper_pblication_date_[0]" name="papers|paper[0]|pblication_date" label="发表时间"
                   class="required input_text date beforeToday" style="width:70%"/>
        </td>
        <td align="center">
            <input type="text" name="papers|paper[0]|first_author" label="第一作者" class=" required input_text "
                   maxlength="50" style="width:80%"/>
        </td>
        <td align="center">
            <input type="text" name="papers|paper[0]|first_author_unit" label="第一作者单位" class=" required input_text "
                   maxlength="50" style="width:80%"/>
        </td>
        <td align="center">
            <input type="text" name="papers|paper[0]|abstract" label="论文摘要" class=" required input_text "
                   maxlength="50" style="width:80%"/>
        </td>
    </tr>

    <c:set value="0" var="index" scope="page"/>
    <x:forEach select="$xmlData/data/papers/paper" var="paper">

        <c:choose>
            <c:when test="${index<10}"><c:set value="0" var="flag" scope="page"/></c:when>
            <c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
        </c:choose>
        <tr align="center">
            <td align="center">
                <input type="radio" class="radiobutton" name="selPaper">
            </td>
            <td align="center">
                <span name="papers/paper[${flag}${index}]@seq_no"><x:out select="$paper/@seq_no"/></span>
            </td>
            <td align="center">
                <input type="text" name="papers/paper[${flag}${index}]/article_name" label="文章名称" class=" required input_text "
                       maxlength="200" style="width:80%" value="<x:out select="$paper/article_name"/>"/>
            </td>
            <td align="center">
                <input type="text" name="papers/paper[${flag}${index}]/publication" label="刊物名称及期号" class=" required input_text "
                       maxlength="50" style="width:80%" value="<x:out select="$paper/publication"/>"/>
            </td>
            <td align="center">
                <c:set var="pblication_date"><x:out select="$paper/pblication_date"/></c:set>
                <input id="paper_pblication_date_[${flag}${index}]" name="papers/paper[${flag}${index}]/pblication_date" label="发表时间"
                       class="required input_text date beforeToday" style="width:70%" value="${pblication_date}"/>
            </td>
            <td align="center">
                <input type="text" name="papers/paper[${flag}${index}]/first_author" label="第一作者" class=" required input_text "
                       maxlength="50" style="width:80%" value="<x:out select="$paper/first_author"/>"/>
            </td>
            <td align="center">
                <input type="text" name="papers/paper[${flag}${index}]/first_author_unit" label="第一作者单位" class=" required input_text "
                       maxlength="50" style="width:80%" value="<x:out select="$paper/first_author_unit"/>"/>
            </td>
            <td align="center">
                <input type="text" name="papers/paper[${flag}${index}]/abstract" label="论文摘要" class=" required input_text "
                       maxlength="50" style="width:80%" value="<x:out select="$paper/abstract"/>"/>
            </td>
        </tr>
        <c:set value="${index+1}" var="index" scope="page"/>
    </x:forEach>
    </tbody>
    <script type="text/javascript">
        showAllDateTag("paper");
    </script>
</table>
<table width="98%" align="center" border="0">
    <tr style="border: 0">
        <td style="border: 0">
            <input class="button" name="cmdAddbefore" type=button value="添加"
                   onclick="if(checkTabLimit('paper',99,'组建以来（或近三年）发表论文情况最多只能添加99条')){addNewRow('paper');showDateTag('paper');try{top.resizeFrame();}catch(e){};}">
            <input class="button" name="cmdMovePrev" type=button value="上移"
                   onclick="movePrev('paper','selPaper')">
            <input class="button" name="cmdMoveNext" type=button value="下移"
                   onclick="moveNext('paper','selPaper')">
            <input class="button" name="cmddel" type=button value="删除"
                   onclick="deleteSelectedRow('paper','组建以来（或近三年）发表论文情况')">
        </td>
    </tr>
</table>
<br/>

<div class="t_bar">
    <span class="color_red">*</span>8、组建以来（或近三年）对外开展工程化研发情况（限99条）
</div>
<table id="engineeringRD" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0"
       style="*border-bottom: #a1c0dc 1px solid;table-layout: fixed;">
    <col width="5%"/>
    <col width="5%"/>
    <col width="18%"/>
    <col width="15%"/>
    <col width="15%"/>
    <col width="17%"/>
    <col width="10%"/>
    <col width="15%"/>
    <thead>
    <tr style="border:1px solid #B7D1E6">
        <th class="TblHead" align="center">选择</th>
        <th class="TblHead" align="center">序号</th>
        <th class="TblHead" align="center">工程化研发项目名称</th>
        <th class="TblHead" align="center">被服务单位</th>
        <th class="TblHead" align="center">进展情况</th>
        <th class="TblHead" align="center">形成的产品或服务名称</th>
        <th class="TblHead" align="center">产品或服务数量</th>
        <th class="TblHead" align="center">备注</th>
    </tr>

    </thead>
    <tbody>
    <tr style="display:none" align="center">
        <td align="center">
            <input type="radio" class="radiobutton" name="selEngineering">
        </td>
        <td align="center">
            <span name="engineerings|engineering[0]@seq_no">[index]</span>
        </td>
        <td align="center">
            <input type="text" name="engineerings|engineering[0]|prj_name" label="工程化研发项目名称" class=" required input_text "
                   maxlength="50" style="width:80%"/>
        </td>
        <td align="center">
            <input type="text" name="engineerings|engineering[0]|served_unit" label="被服务单位" class=" required input_text "
                   maxlength="50" style="width:80%"/>
        </td>
        <td align="center">
            <input type="text" name="engineerings|engineering[0]|progress" label="进展情况" class=" required input_text "
                   maxlength="50" style="width:80%"/>
        </td>
        <td align="center">
            <input type="text" name="engineerings|engineering[0]|products_service" label="形成的产品或服务名称" class=" required input_text "
                   maxlength="50" style="width:80%"/>
        </td>
        <td align="center">
            <input type="text" name="engineerings|engineering[0]|products_service_num" label="产品或服务数量" class=" required input_text "
                   maxlength="50" style="text-align:right;width:80%" onfocus="InitInput.setNumber(this,9,0,0)" />
        </td>
        <td align="center">
            <input type="text" name="engineerings|engineering[0]|remarks" label="备注" class=" required input_text "
                   maxlength="50" style="width:80%"/>
        </td>
    </tr>

    <c:set value="0" var="index" scope="page"/>
    <x:forEach select="$xmlData/data/engineerings/engineering" var="engineering">

        <c:choose>
            <c:when test="${index<10}"><c:set value="0" var="flag" scope="page"/></c:when>
            <c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
        </c:choose>
        <tr align="center">
            <td align="center">
                <input type="radio" class="radiobutton" name="selEngineering">
            </td>
            <td align="center">
                <span name="engineerings/engineering[${flag}${index}]@seq_no"><x:out select="$engineering/@seq_no"/></span>
            </td>
            <td align="center">
                <input type="text" name="engineerings/engineering[${flag}${index}]/prj_name" label="工程化研发项目名称" class=" required input_text "
                       maxlength="50" style="width:80%" value="<x:out select="$engineering/prj_name"/>"/>
            </td>
            <td align="center">
                <input type="text" name="engineerings/engineering[${flag}${index}]/served_unit" label="被服务单位" class=" required input_text "
                       maxlength="50" style="width:80%" value="<x:out select="$engineering/served_unit"/>"/>
            </td>
            <td align="center">
                <input type="text" name="engineerings/engineering[${flag}${index}]/progress" label="进展情况" class=" required input_text "
                       maxlength="50" style="width:80%" value="<x:out select="$engineering/progress"/>"/>
            </td>
            <td align="center">
                <input type="text" name="engineerings/engineering[${flag}${index}]/products_service" label="形成的产品或服务名称" class=" required input_text "
                       maxlength="50" style="width:80%" value="<x:out select="$engineering/products_service"/>"/>
            </td>
            <td align="center">
                <input type="text" name="engineerings/engineering[${flag}${index}]/products_service_num" label="产品或服务数量" class=" required input_text "
                       maxlength="50" style="text-align:right;width:80%" value="<x:out select="$engineering/products_service_num"/>" onfocus="InitInput.setNumber(this,9,0,0)" />
            </td>
            <td align="center">
                <input type="text" name="engineerings/engineering[${flag}${index}]/remarks" label="备注" class=" required input_text "
                       maxlength="50" style="width:80%" value="<x:out select="$engineering/remarks"/>"/>
            </td>
        </tr>
        <c:set value="${index+1}" var="index" scope="page"/>
    </x:forEach>
    </tbody>
    <script type="text/javascript">
        showAllDateTag("engineeringRD");
    </script>
</table>
<table width="98%" align="center" border="0">
    <tr style="border: 0">
        <td style="border: 0">
            <input class="button" name="cmdAddbefore" type=button value="添加"
                   onclick="if(checkTabLimit('engineeringRD',99,'组建以来（或近三年）对外开展工程化研发情况最多只能添加99条')){addNewRow('engineeringRD');showDateTag('engineeringRD');try{top.resizeFrame();}catch(e){};}">
            <input class="button" name="cmdMovePrev" type=button value="上移"
                   onclick="movePrev('engineeringRD','selEngineering')">
            <input class="button" name="cmdMoveNext" type=button value="下移"
                   onclick="moveNext('engineeringRD','selEngineering')">
            <input class="button" name="cmddel" type=button value="删除"
                   onclick="deleteSelectedRow('engineeringRD','组建以来（或近三年）对外开展工程化研发情况')">
        </td>
    </tr>
</table>
<br/>


<div class="t_bar">
    <span class="color_red">*</span>9、组建以来（或近三年）对外开放科技服务情况（限99条）
</div>
<table id="scienceTechnology" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0"
       style="*border-bottom: #a1c0dc 1px solid;table-layout: fixed;">
    <col width="5%"/>
    <col width="5%"/>
    <col width="30%"/>
    <col width="25%"/>
    <col width="10%"/>
    <col width="25%"/>
    <thead>
    <tr style="border:1px solid #B7D1E6">
        <th class="TblHead" align="center">选择</th>
        <th class="TblHead" align="center">序号</th>
        <th class="TblHead" align="center">对外开放服务名称或内容</th>
        <th class="TblHead" align="center">被服务单位</th>
        <th class="TblHead" align="center">数量</th>
        <th class="TblHead" align="center">备注</th>
    </tr>

    </thead>
    <tbody>
    <tr style="display:none" align="center">
        <td align="center">
            <input type="radio" class="radiobutton" name="selScienceTechnology">
        </td>
        <td align="center">
            <span name="science_technology|list[0]@seq_no">[index]</span>
        </td>
        <td align="center">
            <input type="text" name="science_technology|list[0]|open_servic_content" label="对外开放服务名称或内容" class=" required input_text "
                   maxlength="50" style="width:80%"/>
        </td>
        <td align="center">
            <input type="text" name="science_technology|list[0]|served_unit" label="被服务单位" class=" required input_text "
                   maxlength="50" style="width:80%"/>
        </td>
        <td align="center">
            <input type="text" name="science_technology|list[0]|num" label="数量" class=" required input_text "
                   maxlength="50" style="text-align:right;width:80%" onfocus="InitInput.setNumber(this,9,0,0)" />
        </td>
        <td align="center">
            <input type="text" name="science_technology|list[0]|remarks" label="备注" class=" required input_text "
                   maxlength="50" style="width:80%"/>
        </td>
    </tr>

    <c:set value="0" var="index" scope="page"/>
    <x:forEach select="$xmlData/data/science_technology/list" var="list">

        <c:choose>
            <c:when test="${index<10}"><c:set value="0" var="flag" scope="page"/></c:when>
            <c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
        </c:choose>
        <tr align="center">
            <td align="center">
                <input type="radio" class="radiobutton" name="selScienceTechnology">
            </td>
            <td align="center">
                <span name="science_technology/list[${flag}${index}]@seq_no"><x:out select="$list/@seq_no"/></span>
            </td>
            <td align="center">
                <input type="text" name="science_technology/list[${flag}${index}]/open_servic_content" label="对外开放服务名称或内容" class=" required input_text "
                       maxlength="50" style="width:80%" value="<x:out select="$list/open_servic_content"/>"/>
            </td>
            <td align="center">
                <input type="text" name="science_technology/list[${flag}${index}]/served_unit" label="被服务单位" class=" required input_text "
                       maxlength="50" style="width:80%" value="<x:out select="$list/served_unit"/>"/>
            </td>
            <td align="center">
                <input type="text" name="science_technology/list[${flag}${index}]/num" label="数量" class=" required input_text "
                       maxlength="50" style="text-align:right;width:80%" value="<x:out select="$list/num"/>" onfocus="InitInput.setNumber(this,9,0,0)" />
            </td>
            <td align="center">
                <input type="text" name="science_technology/list[${flag}${index}]/remarks" label="备注" class=" required input_text "
                       maxlength="50" style="width:80%" value="<x:out select="$list/remarks"/>"/>
            </td>
        </tr>
        <c:set value="${index+1}" var="index" scope="page"/>
    </x:forEach>
    </tbody>
    <script type="text/javascript">
        showAllDateTag("scienceTechnology");
    </script>
</table>
<table width="98%" align="center" border="0">
    <tr style="border: 0">
        <td style="border: 0">
            <input class="button" name="cmdAddbefore" type=button value="添加"
                   onclick="if(checkTabLimit('scienceTechnology',99,'组建以来（或近三年）对外开放科技服务情况最多只能添加99条')){addNewRow('scienceTechnology');showDateTag('scienceTechnology');try{top.resizeFrame();}catch(e){};}">
            <input class="button" name="cmdMovePrev" type=button value="上移"
                   onclick="movePrev('scienceTechnology','selScienceTechnology')">
            <input class="button" name="cmdMoveNext" type=button value="下移"
                   onclick="moveNext('scienceTechnology','selScienceTechnology')">
            <input class="button" name="cmddel" type=button value="删除"
                   onclick="deleteSelectedRow('scienceTechnology','组建以来（或近三年）对外开放科技服务情况')">
        </td>
    </tr>
</table>


<script type="text/javascript">
    /**
     * 上移行
     * @param tblId
     * @returns {Boolean}
     */
    function movePrev2(tblId, selName) {
        if (!selName)
            selName = "";
        if ($("#" + tblId + " :radio[name*='" + selName + "']:checked").length == 0) {
            scmWarn(irisNotes.prevWarn);
            return false;
        }
        if ($("#" + tblId + " tr").length <= 2)
            return false;
        var trChecked = $("#" + tblId + " :radio[name*='" + selName + "']:checked")
            .parents("tr").first();// 取得被选中的行
        var trPrev = trChecked.prev();// 取得上一行
        var index = trChecked.get(0).rowIndex;// 获得行号
        if (index <= 2) {// 如果是第一行
            scmWarn(irisNotes.tabelMoveWarn1);
            return false;
        }
        //trChecked.remove();
        trPrev.before(trChecked);
        trChecked.find(":radio[name*='" + selName + "']").attr("checked", 'true');
        refreshRowINdex2(tblId);
    }

    /**
     * 下移行
     * @param tblId
     * @returns {Boolean}
     */
    function moveNext2(tblId, selName) {
        if (!selName)
            selName = "";
        if ($("#" + tblId + " :radio[name*='" + selName + "']:checked").length == 0) {
            scmWarn(irisNotes.nextWarn);
            return false;
        }
        if ($("#" + tblId + " tr").length <= 2) {
            return false;
        }
        var trChecked = $("#" + tblId + " :radio[name*='" + selName + "']:checked")
            .parents("tr").first();// 取得被选中的行
        var trNext = trChecked.next();
        var index = trChecked.get(0).rowIndex;// 获得行号
        if (index == $("#" + tblId + " tr").length - 1) {// 如果是第一行
            scmWarn(irisNotes.tabelMoveWarn2);
            return false;
        }
        //trChecked.remove();
        trNext.after(trChecked);
        trChecked.find(":radio[name*='" + selName + "']").attr("checked", "true");
        refreshRowINdex2(tblId);
    }

    /**
     * 重新计算行号
     * @param tblId
     */
    function refreshRowINdex2(tblId) {
        //重新计算行号
        $("#" + tblId + " tr").each(function () {
                var seq = $(this).get(0).rowIndex;//获得行数
                if (tblId == 'tblPaperWorks') {
                    seq = seq - 1;
                }
                if (seq > 1) {//如果有行  显示时display行不计入类，故只减1
                    seq = seq - 1;
                    var seq_no = $(this).find("[name$='seq_no']");
                    if (seq_no.is("span"))
                        seq_no.html(seq);
                    else
                        seq_no.val(seq);

                    seq = "" + (seq - 1);
                    if (seq.length == 1)
                        seq = "0" + seq;
                    //替换相应的name参数的seq
                    $(this).find("input,span,textarea,select").each(function () {
                        var name = $(this).attr("name");
                        if (name != null && name != "") {
                            name = name.replace(/\[\d*\]/g, "[" + seq + "]");
                            $(this).attr("name", name);
                        }
                        /* var id=$(this).attr("id");
                        if(id!=null&&id!=""){
                            id=id.replace(/\[\d*\]/g,"["+seq+"]");
                            $(this).attr("id",id);
                            id=id.replace(/\d+/g,""+seq+"");
                            $(this).attr("id",id);
                        } */
                        var className = $(this).attr("class");
                        if (className != null && className != "") {
                            className = className.replace(/\[\d*\]/g, "[" + seq + "]");
                            $(this).attr("class", className);
                        }
                    });
                }
            }
        );

    }


    /**
     * 删除一行
     * @param radioId
     */
    function deleteSelectedRow2(tableId, message, nummin, warnMsg, selName) {
        if (!selName) selName = "";
        var tr = $("#" + tableId + " :radio[name*='" + selName + "']:checked").parents("tr");
        if (nummin == null)
            nummin = 0;
        var length = tr.length;
        if (tr.length == 0)
            tr = $("#" + tableId + " tr").filter(":last");
        else if (tr.length > 1)
            tr = tr.first();

        if (tr.get(0).rowIndex - 1 == nummin) {
            scmWarn(irisNotes.delWarn1);
            return false;
        }
        if (length == 0) {

            scmWarn(irisNotes.delWarn2);

            return false;
        }
        if (!confirm(messageTip.deleteTip + message + "？"))
            return false;
        tr.remove();
        refreshRowINdex2(tableId);
        return true;
        setSubmitOrg();
    }

</script>
